package com.iukcy.hight.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.client.RestTemplate;

/**
 * @project: kbase-utils
 * @author: zhangzhufu
 * @datetime: 2020/9/19 9:30 下午
 * @description: TODO
 */
public class HightBTestU implements Runnable{
    private final static Logger logger = LoggerFactory.getLogger(HightBTestU.class);
    private RestTemplate restTemplate;
    private String url;
    public HightBTestU(RestTemplate restTemplate,String url){
        this.restTemplate = restTemplate;
        this.url = url;
    }
    @Override
    public void run() {
        String jstoken = restTemplate.getForObject(url,String.class);
        logger.info(jstoken);
        logger.info("==================================================");
    }
}